package com.heima.test5;

public class Book {
    private String name;
    private static int count=0;

    public Book() {
        count++;
    }

    public Book(String name) {
        this.name = name;
        count++;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static int getCount() {
        return count;
    }

}
